package shili.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import shili.User;
import shili.dao.UserDao;
import shili.service.UserService;

import javax.annotation.Resource;

/**
 * UserServiceImpl
 *
 * @author boy
 * @since 2023/10/13
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public UserServiceImpl() {}

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Resource(name = "userDao")
    private UserDao dao;

    @Autowired
    private UserDao userdao;
    public void save(User user) {
        userDao.save(user);
    }

}
